package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class TransformGroupSpecification {

    private int beginIndex;
    private int endIndex;
    private Identifier singleGroupSpecification;
    private MultipleGroupSpecification multipleGroupSpecification;

    public TransformGroupSpecification(int beginIndex, Identifier singleGroupSpecification) {
        this.beginIndex = beginIndex;
        this.endIndex = singleGroupSpecification.getEndIndex();
        this.singleGroupSpecification = singleGroupSpecification;
    }

    public TransformGroupSpecification(int beginIndex, MultipleGroupSpecification multipleGroupSpecification) {
        this.beginIndex = beginIndex;
        this.endIndex = singleGroupSpecification.getEndIndex();
        this.multipleGroupSpecification = multipleGroupSpecification;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public Identifier getSingleGroupSpecification() {
        return singleGroupSpecification;
    }

    public MultipleGroupSpecification getMultipleGroupSpecification() {
        return multipleGroupSpecification;
    }

}
